<h1>{$cat->title}</h1>
<table class="list">
	<tr>
		<th class="_20">Публ.</th>
		<th class="_20">Ред.</th>
		<th class="_20">Права</th>
		<th class="_20">Дата</th>
		<th>Заголовок</th>
		<th class="_20">Просмотры</th>
		<th class="_20">Удл.</th>
	</tr>
	{foreach $news as $new}
		<tr>
			<td class="center">
				{if $new->active}
					<a title="Отключить публикацию" href="{$base_url}&action=news_unactive&id={$new->id}"><img src="{$tpl_url}images/online.png" alt="Active"/></a>
				{else}
					<a title="Опубликовать" href="{$base_url}&action=news_active&id={$new->id}"><img src="{$tpl_url}images/offline.png" alt="Unactive"/></a>
				{/if}
			</td>
			<td class="center">
				<a href="{$base_url}&action=news_edit&id={$new->id}"><img src="{$tpl_url}images/pencil.png" alt="Edit"/></a>
			</td>
			<td class="center">
				<a href="{$base_url}&action=news_rights&id={$new->id}"><img src="{$tpl_url}images/users.png" alt="Rights"/></a>
			</td>
			<td class="center">
				{date('d.m.Y', $new->date_publish)}
			</td>
			<td>
				{$new->title}
			</td>
			<td class="center">
				{$new->views}
			</td>
			<td class="center">
				<a onclick="if(confirm('Вы действительно желаете удалить эту новость?')) location.href=this.href; return false;" href="{$base_url}&action=news_delete&id={$new->id}"><img src="{$tpl_url}images/trash.png" alt="Delete"/></a>
			</td>
		</tr>
	{/foreach}
</table>